import by from '@/assets/img/白羊座.jpeg';
import cn from '@/assets/img/处女座.jpeg';
import jn from '@/assets/img/金牛座.jpeg';
import jx from '@/assets/img/巨蟹座.jpeg';
import mj from '@/assets/img/摩羯座.jpeg';
import ss from '@/assets/img/射手座.jpeg';
import sz from '@/assets/img/狮子座.jpeg';
import sy from '@/assets/img/双鱼座.jpeg';
import sz1 from '@/assets/img/双子座.jpeg';
import sp from '@/assets/img/水瓶座.jpeg';
import tc from '@/assets/img/天秤座.jpeg';
import tx from '@/assets/img/天蝎座.jpeg';

const imgMap = {
    '白羊座': by,
    '处女座': cn,
    '金牛座': jn,
    '巨蟹座': jx,
    '摩羯座': mj,
    '射手座': ss,
    '狮子座': sz,
    '双鱼座': sy,
    '双子座': sz1,
    '水瓶座': sp,
    '天秤座': tc,
    '天蝎座': tx
};

export const getImg = (name: string) => {
    // console.log('qqq');
    return imgMap[name as keyof typeof imgMap];
}

export const getFiled = (path?: string) => {
    if (!path || path === '/') {
        return 'today';
    } else {
        return path.slice(1);
    }
}